package com.tarry.service;

import javax.jws.WebService;
import javax.xml.ws.Endpoint;

@WebService
public class HelloService {

    public String getValue(String name) {
        return "My name is " + name;
    }

    public static void main(String[] args) {
        //http://localhost:9001/service/hello?wsdl
        Endpoint.publish("http://localhost:9001/service/hello", new HelloService());
        System.out.println("create service ~~~~~~~~~~");
    }
}
